import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Router from 'vue-router'
import router from './router'
import store from "./store"
import { postAxios } from './http/httpRequest'
import { getAxios } from './http/httpRequest'
import { deleteAxios } from './http/httpRequest'
import { putAxios } from './http/httpRequest'
import instance from './http/httpRequest'

Vue.prototype.$axios = instance

Vue.prototype.$postAxios = postAxios
Vue.prototype.$getAxios = getAxios
Vue.prototype.$deleteAxios = deleteAxios
Vue.prototype.$putAxios = putAxios

instance.defaults.baseURL = 'http://localhost:8000/'

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')


Vue.use(ElementUI);

new Vue({
  el: '#app',
  render: h => h(App)
});

Vue.use(Router)

new Vue({
  router,
  render: h => h(App),
}).$mount("app")


Vue.config.productionTip = false
 
new Vue({
  render: h => h(App),
  store
}).$mount('#app')